package cc.shacocloud.mirage.demo.java.service;

import cc.shacocloud.mirage.bean.bind.Component;
import cc.shacocloud.mirage.core.ApplicationListener;
import cc.shacocloud.mirage.core.event.EnvironmentChangeEvent;
import io.vertx.core.Future;
import lombok.extern.slf4j.Slf4j;

/**
 * @author 思追(shaco)
 * @date 2023/3/10
 */
@Slf4j
@Component
public class MirageDemoEventBean implements ApplicationListener<EnvironmentChangeEvent> {

    @Override
    public Future<Void> onApplicationEvent(EnvironmentChangeEvent event) {
        log.info("配置发生变更...");
        return Future.succeededFuture();
    }
}